package cn.tedu._06artice.pojo.dto;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserArticleParam {
    private Long userId;
    @NotNull(message = "标题不能为空....")
    private String title;
    @Size(min = 1, max = 500)
    private String content;
}
